package jwebtest.rpc.zk;

import java.util.Map;

/**
 * RPC节点属性
 * 
 * @author Yuanqy
 *
 */
public class ZNode {

	private String parentName;// 父节点
	private String nodeName;// 当前节点
	private String host;// 服务地址
	private int port;// 服务端口
	private int priority;// 优先级
	private int weight;// 权重
	private String version;
	private String remark;
	private Map<String, String> filter;

	public ZNode() {
		super();
	}

	public ZNode(String parentName, String nodeName, String host, int port, int priority, int weight, String version, String remark, Map<String, String> filter) {
		super();
		this.parentName = parentName;
		this.nodeName = nodeName;
		this.host = host;
		this.port = port;
		this.priority = priority;
		this.weight = weight;
		this.version = version;
		this.remark = remark;
		this.filter = filter;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getNodeName() {
		return nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Map<String, String> getFilter() {
		return filter;
	}

	public void setFilter(Map<String, String> filter) {
		this.filter = filter;
	}
}
